import request from '@/axios/request'

// 1.8用户登录
export function login(data) {
	return request({
		url: '/zhixuan/api/v1/user/login',
		method: 'post',
		data
	})
}

// 1.6注册
export function register(data) {
	return request({
		url: '/zhixuan/api/v1/user/register',
		method: 'post',
		data
	})
}
// 1.5获取验证码
export function getVerifyCode(data) {
	return request({
		url: '/zhixuan/api/v1/user/getVerifyCode',
		method: 'post',
		data
	})
}
// 1.4获取个人信息
export function getUserInfo() {
	return request({
		url: '/zhixuan/api/v1/user/get',
		method: 'get',
	})
}
//1.10 模糊匹配搜索公司
export function getCompanyKey(data) {
	return request({
		url: '/zhixuan/api/v1/company/find',
		method: 'post',
		data
	})
}

//1.2 取消认证
export function cancelAuth() {
	return request({
		url: '/zhixuan/api/v1/user/cancel',
		method: 'get',
	})
}

//1.9 公司认证
export function companyAuth(data) {
	return request({
		url: '/zhixuan/api/v1/company/auth',
		method: 'post',
		data
	})
}

//1.11 实名信息认证
export function userAuth(data) {
	return request({
		url: '/zhixuan/api/v1/user/auth',
		method: 'post',
		data
	})
}

// 1.12 证件照片上传
export function uploadImage(data) {
    return request({
      url: '/zhixuan/api/v1/user/uploadImage',
      method: 'post',
      data
    })
 }

// 1.1 查询完成的认证
export function getUserInfoList(data) {
    return request({
      url: '/zhixuan/api/v1/userInfo/getUserInfoList',
      method: 'post',
      data
    })
 }

//1.3个人信息更新
export function updateUser(data) {
    return request({
      url: '/zhixuan/api/v1/user/update',
      method: 'post',
      data
    })
 }

//1.13修改密码
export function changePassword(data) {
    return request({
      url: '/zhixuan/api/v1/user/changePassword',
      method: 'post',
      data
    })
 }
 //1.14忘记密码
export function forgetPassword(data) {
    return request({
      url: '/zhixuan/api/v1/user/forgetPassword',
      method: 'post',
      data
    })
 }